
const findIndexByKeyValue = (arr, key, valuetosearch) => {
    for (var i = 0; i < arr.length; i++) {
        if (arr[i][key] == valuetosearch) {
            return i;
        }
    }
    return -1;
}

export { findIndexByKeyValue }
